package com.mybatis03;

import com.mybatis03.mapper.DeptMapper;
import com.mybatis03.mapper.DeptMapper01;
import com.mybatis03.mapper.EmpMapper01;
import com.mybatis03.pojo.Dept;
import com.mybatis03.pojo.Emp01;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class Mybatis03ApplicationTests02 {

    @Autowired
    private DeptMapper deptMapper;

    @Test
    void contextLoads() {
       /* Dept deptById = deptMapper.getDeptById(2);
        System.out.println("deptById = " + deptById);*/

        Dept deptByIdStep = deptMapper.getDeptByIdStep(2);
        System.out.println(deptByIdStep);


    }

}
